package com.jdd.dao.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jdd.dao.entity.TDepartment;
import com.jdd.dao.mapper.TDepartmentMapper;
import com.jdd.dao.service.TDepartmentService;
import com.jdd.modules.people.dto.TDepartmentDto;
import org.springframework.stereotype.Service;

/**
 * @className TDepartmentServiceImpl
 * @author: zxl
 * @describe:
 * @date: 2022/9/22/19:53
 * @vision: 1.0
 */
@Service
public class TDepartmentServiceImpl extends ServiceImpl<TDepartmentMapper, TDepartment> implements TDepartmentService {

    @Override
    public IPage<TDepartmentDto> pageList(Page<TDepartmentDto> page) {
        IPage<TDepartmentDto> tDepartmentDtoIPage = baseMapper.findAllDepartmentDtp(page,null);

        return tDepartmentDtoIPage;
    }
}
